package com.znsd.stu.dao;

import java.util.Date;
import java.util.List;

import org.apache.ibatis.annotations.Param;

import com.znsd.entitys.Users;

public interface Cwj_UserDao {
	
	public List<Users> gettecher();
	
	public List<Users> gettecherAll();
	
	public int getCountTeacher();
	
	public List<Users> getStudnet();
	
	public int getCountStudent();
	
	public void delete(@Param("id")Integer id);
	
	public void updateteacher(@Param("user_id")Integer user_id,@Param("user_name")String user_name,
			@Param("user_age")Integer user_age,@Param("user_phone")String user_phone,
			@Param("user_mail")String user_mail,@Param("user_idCard")String user_idCard,
			@Param("user_birthday")Date user_birthday,@Param("user_native")String user_native,
			@Param("user_home")String user_home,@Param("user_education")String user_education,
			@Param("user_nation")String user_nation,@Param("graduate_time")Date graduate_time,
			@Param("user_married")Integer user_married,@Param("user_sex")Integer user_sex,@Param("user_state")Integer user_state);
	
	public Users getByTeaher(@Param("userId")Integer userId);
	
	public List<Users> getStuByClass(@Param("classId")Integer classId);
	
	public void updateStuByClassPost(@Param("classId")Integer classId,@Param("stuId")Integer stuId);
	
	public void updateUserClass(@Param("newId")Integer newId,@Param("oldId")Integer oldId);
}
